
#ifndef _MEMBER_BSHAPE_H_
#define _MEMBER_BSHAPE_H_

#include <BMatrix>
#include <BState>
#include <BShape>
#include <BMaterial>
#include <BTexture>
#include <BProgram>

#define shape_member(shape)		((member_BShape*)((BShape*)shape)->_ptr)

namespace BWE
{
	class member_BShape
	{
	public:
		member_BShape(BShape* shape);
		~member_BShape();

		void render(BRender& render);

		BShape*				boss;
		bool				dirty;
		BSpace				space;
		BColor				color;
		BMaterialHolder		material;
		BProgramHolder		program;
		BTextureHolder		texture;
		BArray<BTextureHolder>	textures;
	};
}

#endif